package top.hcode.hoj.pojo.entity.course;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author orangej
 * @since 2024/12/17
 */
@Data
@Accessors(chain = true)
@ApiModel(value="题目选项", description="")
public class QuestionOption implements Serializable {

    private static final long serialVersionUID = -7756527287038107313L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "题目id")
    private Long questionId;

    @ApiModelProperty(value = "选项编号，大写英文字母，例如：A, B, C")
    private String optionNum;

    @ApiModelProperty(value = "选项内容")
    private String content;

    @ApiModelProperty(value = "选项排序，由小到大")
    private Integer sortOrder;

    @ApiModelProperty(value = "是否是正确答案")
    private Boolean isAnswer;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
